home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / rdf / rdfITripleVisitor.h < prev   
C/C++ Source or Header  |  2006-05-08  |  3KB  |  108 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM rdfITripleVisitor.idl
  3.  */
  4.  
  5. #ifndef __gen_rdfITripleVisitor_h__
  6. #define __gen_rdfITripleVisitor_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIRDFResource; /* forward declaration */
  18.  
  19. class nsIRDFNode; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    rdfITripleVisitor */
  23. #define RDFITRIPLEVISITOR_IID_STR "aafea151-c271-4505-9978-a100d292800c"
  24.  
  25. #define RDFITRIPLEVISITOR_IID \
  26.   {0xaafea151, 0xc271, 0x4505, \
  27.     { 0x99, 0x78, 0xa1, 0x00, 0xd2, 0x92, 0x80, 0x0c }}
  28.  
  29. /**
  30.  * Interface used in RDF to enumerate triples.
  31.  * Also used by rdfIDataSource::getAllSubjects, then aPredicate,
  32.  * aObject and aTruthValue are ignored.
  33.  *
  34.  * @status PLASMA
  35.  */
  36. class NS_NO_VTABLE rdfITripleVisitor : public nsISupports {
  37.  public: 
  38.  
  39.   NS_DEFINE_STATIC_IID_ACCESSOR(RDFITRIPLEVISITOR_IID)
  40.  
  41.   /**
  42.      * Callback function for returning query results.
  43.      *
  44.      * @param aSubject, aPredicate, aObject describe the (sub-)arc
  45.      * @returnCode NS_RDF_STOP_VISIT to stop iterating over the query result.
  46.      *             Any error code will stop the iteration as well.
  47.      */
  48.   /* void visit (in nsIRDFNode aSubject, in nsIRDFResource aPredicate, in nsIRDFNode aObject, in boolean aTruthValue); */
  49.   NS_IMETHOD Visit(nsIRDFNode *aSubject, nsIRDFResource *aPredicate, nsIRDFNode *aObject, PRBool aTruthValue) = 0;
  50.  
  51. };
  52.  
  53. /* Use this macro when declaring classes that implement this interface. */
  54. #define NS_DECL_RDFITRIPLEVISITOR \
  55.   NS_IMETHOD Visit(nsIRDFNode *aSubject, nsIRDFResource *aPredicate, nsIRDFNode *aObject, PRBool aTruthValue); 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_RDFITRIPLEVISITOR(_to) \
  59.   NS_IMETHOD Visit(nsIRDFNode *aSubject, nsIRDFResource *aPredicate, nsIRDFNode *aObject, PRBool aTruthValue) { return _to Visit(aSubject, aPredicate, aObject, aTruthValue); } 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  62. #define NS_FORWARD_SAFE_RDFITRIPLEVISITOR(_to) \
  63.   NS_IMETHOD Visit(nsIRDFNode *aSubject, nsIRDFResource *aPredicate, nsIRDFNode *aObject, PRBool aTruthValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->Visit(aSubject, aPredicate, aObject, aTruthValue); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class _MYCLASS_ : public rdfITripleVisitor
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_RDFITRIPLEVISITOR
  74.  
  75.   _MYCLASS_();
  76.  
  77. private:
  78.   ~_MYCLASS_();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(_MYCLASS_, rdfITripleVisitor)
  86.  
  87. _MYCLASS_::_MYCLASS_()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. _MYCLASS_::~_MYCLASS_()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* void visit (in nsIRDFNode aSubject, in nsIRDFResource aPredicate, in nsIRDFNode aObject, in boolean aTruthValue); */
  98. NS_IMETHODIMP _MYCLASS_::Visit(nsIRDFNode *aSubject, nsIRDFResource *aPredicate, nsIRDFNode *aObject, PRBool aTruthValue)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* End of implementation class template. */
  104. #endif
  105.  
  106.  
  107. #endif /* __gen_rdfITripleVisitor_h__ */
  108.